#ifndef KMNETMSGIN_H
#define KMNETMSGIN_H

#include <string>

class KMNetMsgIn
{
public:
    KMNetMsgIn(const char *data,unsigned int length);
    virtual ~KMNetMsgIn();

    bool readId(int &id);
    bool readString(std::string &str);
    bool read2Bytes(int &val);

protected:
private:
    const char *mData;
    unsigned int mLength;
    unsigned int mPos;
};

#endif
